Contents | Index | < Browse | Browse >
LETTERclogULETTER
An ostream object, which writes to the standard log file.
Overview
#include <iostream.h>
clog << x;
<any type> x; // Any type, which can be used with ostream::operator<<
Portability
AT&T Release 2 streams library
Description
At startup, clog is initialized with the standard output stream as AmigaDOS
does not differ between the standard output and the standard logging output
stream. Normally this is the CLI's console the program was started from.
See also
cout , cerr
Example
#include <iostream.h>
#include <time.h>
void main()
{
clog << "The program has been running for " << clock()
/ CLOCKS_PER_SEC << " secs." << endl;
}